//
//  HSYPlayerBrightnessView.h
//  高仿暴走斗图
//
//  Created by key on 16/8/19.
//  Copyright © 2016年 huangsongyao. All rights reserved.
//

#import <UIKit/UIKit.h>

static const CGFloat kVideoBrightnessIndicatorViewSide              = 118.0;
static const CGFloat kVideoVolumeIndicatorViewSide                  = 118.0;

static const CGFloat kMinValue                                      = 0.0f;
static const CGFloat kMaxValue                                      = 1.0f;

static const CGFloat kViewSpacing                                   = 21.0;
static const CGFloat kIndicatorAutoFadeOutTimeInterval              = 1.0;
static const CGFloat kCornerRadius                                  = 5.0f;

typedef NS_ENUM(NSUInteger, kHSYPlayerIndicatorProgessType) {
    
    kHSYPlayerIndicatorProgessTypeNone,
    kHSYPlayerIndicatorProgessTypeBrightness,
    kHSYPlayerIndicatorProgessTypeVolume,
    kHSYPlayerIndicatorProgessTypeTimeIndicator,
    
};

@interface HSYBasePlayerIndicatorView : UIView

@property (nonatomic, assign ,readonly) kHSYPlayerIndicatorProgessType indicatorType;
@property (nonatomic, strong, readonly) UIImage *logo;
@property (nonatomic, strong, readonly) UIImage *highLogo;

- (instancetype)initWithLogo:(UIImage *)logo highLogo:(UIImage *)highLogo indicatorType:(kHSYPlayerIndicatorProgessType)indicatorType;
- (void)updateIndicator:(CGFloat)value;

- (void)toPreventOverlap;                           //解耦，防止重叠，子类重写本方法
- (void)configScreenObserver;                       //解耦，监听改变，子类重写本方法
- (void)updateUIConstraintByValue:(CGFloat)value;   //解耦，区分部分UI，子类重写本方法

@end
